package com.company.JUC.阻塞队列;

import java.util.concurrent.*;

/**
 * @Classname BlockingQueenTest
 * @Description TODO
 * @Date 2021/9/21 21:53
 * @Created by ylr
 */
public class BlockingQueenTest {
    public static void main(String[] args) {
        BlockingQueue<Integer> arrayBlockingQueue = new ArrayBlockingQueue<>(5);

        BlockingQueue<Integer> linkedBlockingQueue = new LinkedBlockingQueue<Integer>();

        SynchronousQueue<Integer> synchronousQueue = new SynchronousQueue<>();

        DelayQueue<Delayed> delayedDelayQueue = new DelayQueue<>();

        PriorityBlockingQueue<Integer> priorityBlockingQueue = new PriorityBlockingQueue<>();

    }
}
